import Vue from 'vue'

const directives = {
	install: ((app) => {
	 el.addEventListener('click', () => {
	 
	 	let state = uni.getStorageSync("buildingState")
	 	switch (state) {
	 		case 1:
	 			uni.navigateTo({
	 				url: '/pages/house/house_audit'
	 			})
	 			break;
	 		case 2:
	 			uni.navigateTo({
	 				url: binding.value
	 			})
	 			break;
	 		default:
	 			uni.navigateTo({
	 				url: '/pages/house/house_1'
	 			})
	 			break;
	 	}
	 
	 })
		 

	})
}

export default directives;